package com.zhiyou.app.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jonathan.z
 * @since 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("id_addon_rule")
public class IdAddonRuleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 触发商品编码
     */
    private String triggerGoodsCode;

    /**
     * 触发数量
     */
    private Integer minQuantity;

    /**
     * 加价商品编码
     */
    private String addonGoodsCode;

    /**
     * 加价数量
     */
    private Integer addonQuantity;

    /**
     * 规则说明
     */
    private String descrption;

    /**
     * 加价金额
     */
    private Integer addonPrice;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer deleted;


}
